import datetime
import random
aa=datetime.datetime.now()#开始时间点
a = random.randint(1,10000)
alist = []
for i in range(1,10000):
    a = random.randint(10,10000)
    alist.append(a)

ln =  len(alist)
alist.append(a)
for i in range(ln-1):
    for j in range(ln-1-i):
        if alist[j] > alist[j+1]:
            alist[j],alist[j+1] =  alist[j+1],alist[j]

print(">>>>排序",alist)

bb=datetime.datetime.now()#结束时间点
cc =bb-aa
print("运行时间：", cc)
